#pragma once
#include <list>

class Snake
{
public:
	int direction;
	int speed;
	int length;
	void move();
	bool lose;
	int score;
	bool gameOver();
	void addItem();
	Snake();
	int map[60][60];
	std::list<std::pair<int, int>> body, item;
	bool speedUp();
private:
	time_t itemOldTime;
	bool checkIsOnSnake(std::pair<int, int> temp);
	time_t speedOldTime;
};

